package com.yx.system.service;

import com.baomidou.mybatisplus.service.IService;
import com.yx.system.entity.SysUserRole;

import java.util.List;

/** 用户与角色对应关系 服务类
 * Created by wuye on 2017/11/24.
 */
public interface SysUserRoleService extends IService<SysUserRole> {
    void saveOrUpdate(Long userId, List<Long> roleIdList);

    /**
     * 根据用户ID，获取角色ID列表
     */
    List<Long> queryRoleIdList(Long userId);

    void deleteByUserId(Long userId);

    void authorRole(Long userId, Long i);
}

